﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Timers;
using Oracle.ManagedDataAccess.Client;
using System.Text.RegularExpressions;

using System.Diagnostics;
using System.Collections.Concurrent;
using System.IO;
using SharpDB;
using SharpDB.Entity;
using System.Data.SqlClient;
using System.Data.Common;
using System.Xml.Linq;
using Microsoft.Win32;
using System.Net;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;

namespace SharpDB_ConsoleApp
{

    class Program
    {
        static string connStr = "Data Source=TAKETRY;password=123456;Initial Catalog=Crawler;User ID=sa";
        static void Main(string[] args)
        {

            DB db2 = new DB(AccessType.MsSql, connStr, false);

            DB db3= new DB(AccessType.MsSql, connStr, false);



            Console.ReadKey();
        }

        static Random rdom = new Random();
        static void SW(Action act)
        {
            Stopwatch wat = new Stopwatch();
            wat.Start();
            act.Invoke();
            wat.Stop();
            long lenTime = wat.ElapsedMilliseconds;
            Console.WriteLine(lenTime);
        }
    }
}
